#include<stdio.h>

char *strcpyy(char *strDest,const char *strSrc,int n);

int main()
{
	char str[4] = {};
	char str1[]= "abcc";
	
	char *p = strcpyy(str,str1,4);
	
	printf("%s\n",p);
	
	return 0;
}

char *strcpyy(char *strDest,const char *strSrc,int n)
{
	int i = 0;
	
	for(i = 0;i<n;i++){
		strDest[i] = strSrc[i];
	}
	
	//printf("%s\n",strDest);
	return strDest;
}
